<!--
 * @Description: VPN详情
 * @Author: 0001100986/LiuShuai
 * @Date: 2021-08-11 15:02:55
 * @LastEditTime: 2021-11-02 09:32:12
 * @LastEditors: 0001100986/LiuShuai
-->
<template>
  <table class="vpn-info">
    <template v-if="sites.length > 0">
      <tr v-for="(item, index) in sites" :key="index">
        <td>站点ID：{{item.id}}</td>
        <td>{{item.siteName}}</td>
      </tr>
    </template>
    <template v-else>
      <tr>
        <td>暂无数据</td>
      </tr>
    </template>
  </table>
</template>

<script>
export default {
  name: 'vpnInfo',
  props: ['sites']
};
</script>

<style lang="scss" scoped>
.vpn-info {
  width: 100%;
  border: 1px solid #ebeef5;
  tr {
    width: 100%;
    td {
      padding: 5px 15px;
      line-height: 30px;
      &:first-child {
        width: 120px;
        text-align: center;
        background: #f8f8f9;
      }
      &:last-child {
        width: calc(100% - 170px);
      }
    }
  }
}
</style>